let app = getApp();
let httptool=require("../../../utils/zry.httptool.js");
Page({
  data:{
    commenList: [],
    msgprop:'',//消息提示 
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
    var that = this;
    let commenList={};
    let customerId = app.getStorage('customerId');
    httptool.ajaxPost("/api/TopicReply/GetMyReply", { UserId: customerId},function(res){
      if(res.suc){
        if(res.data!="" && res.data!=undefined && res.data!=undefined){
            let data = app.notNull(res.data, []);
            that.setData({ commenList: data});
        }else{

        }
      }else{
         app.showNotify(that, res.msg);
      }

    });
  },
  responseBtn:function(e){
    let forumId = e.currentTarget.dataset.id;
    let replyId = e.currentTarget.dataset.replyid;
    let namemark=e.currentTarget.dataset.name;
    wx.navigateTo({
      url: '/pages/detailPost/detailPost?ID=' + forumId + "&namemark=" + namemark +
       "&ptype=" + 1 + "&replyId=" + replyId,
    })
  }
})